package dfl.bysj.controller;


import dfl.bysj.result.R;
import dfl.bysj.service.UserTeacherStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author DFL
 * @since 2022-04-26
 */
@RestController
@RequestMapping("/userTeacherStudent")
public class UserTeacherStudentController {

    private UserTeacherStudentService userTeacherStudentService;

    @Autowired
    public void setUserTeacherStudentService(UserTeacherStudentService userTeacherStudentService) {
        this.userTeacherStudentService = userTeacherStudentService;
    }

    @GetMapping("/stuUserId")
    public R stuUserId(String stuUseId){

        return R.ok().data("studentVO",  userTeacherStudentService.getStudentVO(stuUseId));
    }
}

